package com.zhaolang.qogir.widget;

import android.app.Activity;
import android.widget.TextView;
import com.zhaolang.qogir.widget.FlippingImageView;

public class FlippingLoadingDialog extends BaseDialog {

    private FlippingImageView mFivIcon;
    private TextView mHtvText;
    private String mText;

    public FlippingLoadingDialog(Activity acitvity) {
        super(acitvity);
        init();
    }

    public FlippingLoadingDialog(Activity activity, int theme) {
        super(activity, theme);
        init();
    }

    private void init() {
//        setContentView(R.layout.common_flipping_loading_diloag);
//        setContentView(R.layout.common_flipping_loading_diloag);
//        mFivIcon = (FlippingImageView) findViewById(R.id.loadingdialog_fiv_icon);
//        mHtvText = (TextView) findViewById(R.id.loadingdialog_htv_text);
//        mFivIcon.startAnimation();
//        mHtvText.setText(mText);
    }

    public void setText(String text) {
        mText = text;
        mHtvText.setText(mText);
    }

    @Override
    public void dismiss() {
        if (isShowing()) {
            super.dismiss();
        }
    }
}
